package com.chx.mapper;

import com.chx.annotation.AutoFillOrder;
import com.chx.dto.StockOutOrderPageQueryDto;
import com.chx.entity.StockOutOrders;
import com.chx.enumeration.OperationType;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author cp-月入过万
 * @Date 2025/5/31
 */
@Mapper
public interface StockOutOrderMapper {
     @AutoFillOrder(OperationType.INSERT)
     void insert(StockOutOrders stockInOrders);

     @AutoFillOrder(OperationType.UPDATE)
     void update(StockOutOrders stockOutOrders);

     @Select( "select * from stock_Out_orders where order_id = #{id}")
     StockOutOrders getById(Long id);

     Page<StockOutOrders> page(StockOutOrderPageQueryDto stockInOrderPageQueryDto);
}
